/* vue */
import { defineComponent } from "vue";
/* mixin */
import VersionControlBaseMixin from '@src/mixins/versionControlMixin/base';
/* version user */
import {
  isShowUserDashBoard
} from '@shb-lib/version'

export default defineComponent({
  name: "version-control-user-mixin",
  mixins: [VersionControlBaseMixin],
  computed: {
    /** 
     * @description 个人中心 模块 版本控制
    */
    userVersionControl(): Record<string, boolean> {
      return {
        isShowUserDashBoard: isShowUserDashBoard(this._versionControlMap),
      }
    },
    _isShowUserDashBoard(): boolean {
      return this.userVersionControl.isShowUserDashBoard
    },
  }
})
